/*
 * Copyright (c) GoKeep by gokeep.org. 2022-2023. All rights reserved
 */
package org.gokeep.common.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "system.auth")
public class AuthProperties {
    /**
     * 是否启用权限校验
     */
    private boolean enable = true;

    /**
     * 是否有验证码校验
     */
    private boolean hasCaptcha = true;

    /**
     * token失效时间，在多少天之后，单位天
     */
    private Integer tokenExpire;

    /**
     * 报名单列表
     */
    private List<String> whiteList = Collections.emptyList();
}